<script src="SpryValidationTextField.js" type="text/javascript"></script>
<link href="SpryValidationTextField.css" rel="stylesheet" type="text/css" />

<h2 align="center">Login</h2>
<form action="Gestor?gestor=gestor_login" method="post">
    <span id="sprytextfield1">
        <label>
            Email :<%if (session.getAttribute("erro_email") != null) {%>
            <input type="text" name="email" id="email" value="<%out.println((String) session.getAttribute("campo_email"));%>" /><div id="campos_invalidos"><%out.println("(" + (String) session.getAttribute("erro_email") + ")");%></div>
            <%} else {%>
            <input type="text" name="email" id="email"/><%}%>
        </label>
    </span>
    <p><span id="sprytextfield2">
            <label>Password :
                <input type="password" name="password" id="password" /><%if (session.getAttribute("erro_password") != null) {%>
                <div id="campos_invalidos"><%out.println(session.getAttribute("erro_password"));%></div>
                <%}%>
            </label>
        </span></p>
    <p>
        <label>
            <input type="submit" name="login" id="login" value="Login" />
        </label>
    </p>
</form>
<p>&nbsp;</p>
<script type="text/javascript">
    <!--
    var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "email");
    var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2");
    //-->
</script>
